package cn.globalph.housekeeper.ui.login

import cn.globalph.housekeeper.data.model.BaseModel
import cn.globalph.housekeeper.data.model.LoginModel
import cn.globalph.housekeeper.data.params.LoginParams
import cn.globalph.housekeeper.data.retrofit.HttpManager

class LoginRepository(
    private val httpManager: HttpManager
) {
    suspend fun doLogin(userName:String,password:String):BaseModel<LoginModel>{
        var params = LoginParams(userName,password)
        return httpManager.api.loginByPassword(params)
    }
}